telegraf: update to 1.36.1
authorNiklas Thorild <[email protected]>
Tue, 9 Sep 2025 09:50:10 +0000 (11:50 +0200)
committerWesley Gimenes <[email protected]>
Tue, 16 Sep 2025 20:13:17 +0000 (17:13 -0300)
- Update Telegraf to v1.36.1
- Adjust "telegraf.conf" to new defaults
- Set HOME environment variable in service file
- Change maintainer

Signed-off-by: Niklas Thorild <[email protected]>
utils/telegraf/Makefile
utils/telegraf/files/etc/init.d/telegraf
utils/telegraf/files/etc/telegraf.conf

index de3097ed56984bf252cda022af097e2b03e15c0a..7e3a21c8029fe6a04f21413a911ad1edde16d826 100644 (file)
@@ -3,14 +3,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=telegraf
-PKG_VERSION:=1.35.4
+PKG_VERSION:=1.36.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/influxdata/telegraf/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=8f65d493ec0597369cea6fec8a9dfef2fc8833a44cc9291f13397481635f2a6d
+PKG_HASH:=2478f4c9543300ed44cc0a3329e5a4c6095d9a6eae86aa2deab4ff9d19c1fdd5
 
-PKG_MAINTAINER:=Jonathan Pagel <[email protected]>
+PKG_MAINTAINER:=Niklas Thorild <[email protected]>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
@@ -23,7 +23,7 @@ GO_PKG_BUILD_PKG:=github.com/influxdata/telegraf/cmd/telegraf
 GO_PKG_LDFLAGS_X := \
   github.com/influxdata/telegraf/internal.Version=$(PKG_VERSION) \
   github.com/influxdata/telegraf/internal.Branch=HEAD \
-  github.com/influxdata/telegraf/internal.Commit=c93eb6a0
+  github.com/influxdata/telegraf/internal.Commit=cbb7f134
 
 ifeq ($(CONFIG_mips)$(CONFIG_mipsel),y)
   TARGET_LDFLAGS += -static
index dd1c8a1f5e281a8d0858b2348e66967fe6b68732..6cbae1d45296497525a982713d3f37210095dde0 100755 (executable)
@@ -8,6 +8,7 @@ STOP=01
 start_service() {
     procd_open_instance
     procd_set_param command /usr/bin/telegraf --config /etc/telegraf.conf
+    procd_set_param env HOME=/root
     procd_set_param stdout 1
     procd_set_param stderr 1
     procd_close_instance
index 02eee00661986df6e0439dd261722cbc05ef1902..ed2ab3a3766f8019d9a066b5fb9d709fe59ee19a 100644 (file)
 #   # use_pipeline = "{{es_pipeline}}"
 #   # default_pipeline = "my_pipeline"
 #   #
-#   # Custom HTTP headers
-#   # To pass custom HTTP headers please define it in a given below section
+#   ## Custom HTTP Headers
+#   ## To pass custom HTTP headers please define it in a given below section
 #   # [outputs.elasticsearch.headers]
-#   #    "X-Custom-Header" = "custom-value"
+#   #    "X-Custom-Header" = ["custom-value1", "custom-value2"]
 #
 #   ## Template Index Settings
 #   ## Overrides the template settings.index section with any provided options.
 #   ## Kafka topic for producer messages
 #   topic = "telegraf"
 #
-#   ## The value of this tag will be used as the topic.  If not set the 'topic'
-#   ## option is used.
+#   ## Tag value to be used as the topic. If not set or the tag does not exist,
+#   ## the 'topic' option is used.
 #   # topic_tag = ""
 #
 #   ## If true, the 'topic_tag' will be removed from to the metric.
 #   ##   OAUTHBEARER, PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, GSSAPI, AWS-MSK-IAM
 #   # sasl_mechanism = ""
 #
-#   ## used if sasl_mechanism is GSSAPI
+#   ## Used if sasl_mechanism is GSSAPI
 #   # sasl_gssapi_service_name = ""
 #   # ## One of: KRB5_USER_AUTH and KRB5_KEYTAB_AUTH
 #   # sasl_gssapi_auth_type = "KRB5_USER_AUTH"
 #   ## Access token used if sasl_mechanism is OAUTHBEARER
 #   # sasl_access_token = ""
 #
-#   ## used if sasl_mechanism is AWS-MSK-IAM
+#   ## Used if sasl_mechanism is AWS-MSK-IAM
 #   # sasl_aws_msk_iam_region = ""
 #   ## for profile based auth
 #   ## sasl_aws_msk_iam_profile = ""
 #   ## SASL protocol version.  When connecting to Azure EventHub set to 0.
 #   # sasl_version = 1
 #
-#   # Disable Kafka metadata full fetch
+#   ## Disable Kafka metadata full fetch
 #   # metadata_full = false
 #
 #   ## Maximum number of retries for metadata operations including
 #   ## Optional NATS 2.0 and NATS NGS compatible user credentials
 #   # credentials = "/etc/telegraf/nats.creds"
 #
-#   ## NATS subject for producer messages
-#   ## For jetstream this is also the subject where messages will be published
+#   ## NATS subject for producer messages.
+#   ## This field can be a static string or a Go template, see README for details.
+#   ## Incompatible with `use_batch_format
 #   subject = "telegraf"
 #
 #   ## Use Transport Layer Security
 #   ## Use TLS but skip chain & host verification
 #   # insecure_skip_verify = false
 #
+#   ## Use batch serialization instead of per metric. The batch format allows for the
+#   ## production of batch output formats and may more efficiently encode and write metrics.
+#   # use_batch_format = false
+#
 #   ## Data format to output.
 #   ## Each data format has its own unique set of configuration options, read
 #   ## more about them here:
 #   ## Jetstream specific configuration. If not nil, it will assume Jetstream context.
 #   ## Since this is a table, it should be present at the end of the plugin section. Else you can use inline table format.
 #   # [outputs.nats.jetstream]
-#     ## Name of the stream, required when using jetstream. Telegraf will
-#     ## use the union of the above subject and below the subjects array.
+#     ## Name of the stream, required when using jetstream.
 #     # name = ""
+#     ## List of subjects to register on the stream
 #     # subjects = []
 #
 #     ## Use asynchronous publishing for higher throughput, but note that it does not guarantee order within batches.
 #     # allow_rollup_hdrs = false
 #     # allow_direct = true
 #     # mirror_direct = false
+#
+#     ## Disable creating the stream but assume the stream is managed externally
+#     ## and already exists. This will make the plugin fail if the steam does not exist.
+#     # disable_stream_creation = false
 
 
 # # Send aggregated metrics to Nebius.Cloud Monitoring
 #   ## Initialization SQL
 #   # init_sql = ""
 #
+#   ## Send metrics with the same columns and the same table as batches using prepared statements
+#   # batch_transactions = false
+#
 #   ## Maximum amount of time a connection may be idle. "0s" means connections are
 #   ## never closed due to idle time.
 #   # connection_max_idle_time = "0s"
 #     ## processors.converter after this one, specifying the order attribute.
 
 
+# # Round numerical fields
+# [[processors.round]]
+#   ## Precision to round to.
+#   ## A positive number indicates rounding to the right of the decimal separator (i.e. the fractional part).
+#   ## A negative number indicates rounding to the left of the decimal separator.
+#   # precision = 0
+#
+#   ## Round only numeric fields matching the filter criteria below.
+#   ## Excludes takes precedence over includes.
+#   # include_fields = ["*"]
+#   # exclude_fields = []
+
+
 # # Add the S2 Cell ID as a tag based on latitude and longitude fields
 # [[processors.s2geo]]
 #   ## The name of the lat and lon fields containing WGS-84 latitude and
 #   ## If true, collect metrics from Go's runtime.metrics. For a full list see:
 #   ##   https://pkg.go.dev/runtime/metrics
 #   # collect_gostats = false
+#
+#   ## Collect statistics per plugin instance and not per plugin type
+#   # per_instance = false
 
 
 # # Monitors internet speed using speedtest.net service
 #             "/etc/ssl/certs/ssl-cert-snakeoil.pem",
 #             "/etc/mycerts/*.mydomain.org.pem", "file:///path/to/*.pem",
 #             "jks:///etc/mycerts/keystore.jks",
-#             "pkcs12:///etc/mycerts/keystore.p12"]
+#             "pkcs12:///etc/mycerts/keystore.p12",
+#             "wincertstore://machine:ROOT", "wincertstore://user:CA"]
 #
 #   ## Timeout for SSL connection
 #   # timeout = "5s"
 #   ## For each combination a field is created.
 #   ## Its name is created concatenating identifier, sdparam_separator, and parameter name.
 #   # sdparam_separator = "_"
+#
+#   ## Maximum length allowed for a single message (in bytes when no unit specified)
+#   ## Only applies to octet-counting framing.
+#   # max_message_length = "8KiB"
 
 
 # # Gather information about systemd-unit states
 #     #timeout = 5s
 
 
+# ## Gather CPU metrics using Turbostat
+# [[inputs.turbostat]]
+#   ## Path to the Turbostat exectuable if not in the PATH
+#   # path = "/usr/bin/turbostat"
+#
+#   ## Turbostat measurement interval
+#   # interval = "10s"
+#
+#   ## Use sudo to run the Turbostat executable
+#   # use_sudo = false
+
+
 # # Read metrics from the Vault API
 # [[inputs.vault]]
 #   ## URL for the Vault agent